{{extend 'layout.html'}}

<div class="module">
	<div class="module-body">
		{{=form}}
		<hr />
		<table class="table table-striped">
			<thead>
				<tr>
				  <th>Utente</th>
				  <th>Categoria</th>
				  <th>Test</th>
				  <th>Punti</th>
				</tr>
			</thead>
			<tbody>
				{{for row in rows:}}
					<tr>
						<td><a href="{{=URL('default', 'wall', vars={'auth_user_id':row.auth_user.id})}}">{{="%s %s"%(row.auth_user.first_name, row.auth_user.last_name)}}</a></td>
						<td>{{=row.categorie_test.categoria_test}}</td>
						<td>{{=row.test.test}}</td>
						<td>{{=row._extra["SUM(punteggi.punteggio)"]}}</td>
					</tr>
				{{pass}}
			</tbody>
		</table>
	</div>
</div>

